import { createApp } from 'vue'
import { createPinia } from 'pinia'
//element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//cookies
import VueCookies from 'vue-cookies'
//路由和路由守卫
import router from './router'
import './router/permission'
//验证码
import Vcode from 'vue3-puzzle-vcode'
//主程序
import App from './App.vue'
//vuetify
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
import '@mdi/font/css/materialdesignicons.css'
//mavon-editor
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
const vuetify = createVuetify({
  components,
  directives,
  icons: {
    defaultSet: 'mdi'
  }
})
const app = createApp(App)
app.use(createPinia())
app.use(ElementPlus, { size: 'small' })
app.use(router)
app.use(VueCookies)
app.use(Vcode)
app.use(vuetify)
app.use(mavonEditor)

app.mount('#app')
